home *** CD-ROM | disk | FTP | other *** search
/ Adobe Graphics & Publishing SDK 1996 December / Adobe Graphics & Publishing SDK 1996 December.iso / mac / PageMaker 6.5 SDK Mac / SourceCode / PageMakerClassLibrary / Commands / PChange.cpp < prev    next >
C/C++ Source or Header  |  1996-09-04  |  937b  |  38 lines

  1. /*
  2.  *--- PChange.cpp ---------------------------------------------------------
  3.  * Copyright (c) 1995-96 Adobe Systems Incorporated.  All rights reserved.
  4.  * Created on Sun, Oct 22, 1995 @ 3:57 PM by Paul Ferguson.
  5.  *
  6.  * Description:  For notes about this class, refer to the
  7.  * PCL documentation file PChange.html
  8.  *-------------------------------------------------------------------------
  9.  */
  10.  
  11. #include "PChange.h"
  12. #include "PRequestBuf.h"
  13. #include "PCommand.h"
  14.  
  15. PChange::PChange
  16.   (    const char * sFindWhat,
  17.     const char * sChangeTo,
  18.     short cSearchRange,
  19.     PMBool bWrapAround,
  20.     PMBool bMatchCase,
  21.     PMBool bWholeWord,
  22.     PMBool bClearAttr )
  23. {
  24.     PRequestBuf    request(strlen(sFindWhat) + strlen(sChangeTo) + 32);
  25.     
  26.     request << sFindWhat
  27.             << sChangeTo
  28.             << cSearchRange
  29.             << bWrapAround
  30.             << bMatchCase
  31.             << bWholeWord
  32.             << bClearAttr;
  33.     
  34.     PCommand command(pm_change, request);
  35. }
  36.  
  37. // end of PChange.cpp
  38.